﻿using WeDonekRpc.Helper.Validate;

namespace Shop.RemoteModel.PageTemplate.Model
{
    public class PageTemplateQuery
    {
        [LenValidate("public.query.key.len", 0, 50)]
        public string QueryKey
        {
            get;
            set;
        }
        [EnumValidate("shop.page.template.use.range.error", typeof(PageUseRange))]
        public PageUseRange UseRange { get; set; }

        [EnumValidate("shop.page.template.place.error", typeof(PageTemplatePlace))]
        public PageTemplatePlace Place { get; set; }
        [EnumValidate("shop.page.template.status.error", typeof(PageStatus))]
        public PageStatus? Status { get; set; }
    }
}
